package com.example.springcloud.lb;

import org.springframework.cloud.client.ServiceInstance;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ws
 * Date: 2024-02-06
 * Time: 17:56
 */

// 手写负载均衡算法
public interface LoadBalancer {


    /**
     * 它可以得到注册进 eureka 的微服务相关信息
     */
    ServiceInstance instances(List<ServiceInstance> serviceInstances);

}
